#include<bits/stdc++.h>
using namespace std;
int n,r[100010],cnt,tmp=1;
bool js[100010],fq[100010];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;i++) cin>>r[i]; 
    sort(r+1,r+n+1);
    for(int i=1;i<=n;i++){
        for(int j=tmp+1;j<=n;j++){
            if(js[i]==0&&fq[j]==0&&r[j]>r[i]){
                cnt++;
                tmp=j;
                fq[j]=1;
                js[i]=1;
                break;
            }
        }
    }
    cout<<n-cnt;
    return 0;
}